//
//  HomeHeaderView.m
//  Job
//
//  Created by 桑赐相 on 2018/8/14.
//  Copyright © 2018年 桑赐相. All rights reserved.
//

#import "HomeHeaderView.h"
#import "DCPicScrollView.h"
#import "JHBannerModel.h"
@interface HomeHeaderView()
@property (nonatomic,strong) DCPicScrollView *bannerView;
@end

@implementation HomeHeaderView


- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self initSubView];
    }
    return self;
}

-(void)initSubView{
    
    NSArray *array = @[@"banner1",@"banner2",@"banner3"];
    
    self.bannerView = [[DCPicScrollView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenWidth / 2)];
    self.bannerView.urls = array;
    [self addSubview:self.bannerView];
}





@end

